package project

type BaseField struct {
	ProjectName             string `json:"project_name,omitempty" binding:"required"`           // 项目名称 - 筛选条件
	Description             string `json:"description,omitempty"`                                // 描述
	ClientId                int    `json:"client_id,omitempty"`                                  // 所属客户
	ResponsibleEmployeeId   int    `json:"responsible_employee_id,omitempty"`                    // 负责员工 - 筛选条件
	ResponsibleDepartmentId int    `json:"responsible_department_id,omitempty"`                  // 负责部门 - 筛选条件
	StartDate               string `json:"start_date,omitempty"`                                 // 开始日期
	ExpectedEndDate         string `json:"expected_end_date,omitempty"`                          // 预计结束日期
	Progress                int    `json:"progress,omitempty"`                                   // 进度 - 筛选条件
}

type Id struct {
	Id int `form:"id" json:"id" binding:"required,min=1"` // 注意：gin框架数字的存储形式都是 int
}

type ProjectName struct {
	ProjectName string `form:"project_name" json:"project_name"`
}

type ResponsibleEmployeeId struct {
	ResponsibleEmployeeId int `form:"responsible_employee_id" json:"responsible_employee_id"`
}

type ResponsibleDepartmentId struct {
	ResponsibleDepartmentId int `form:"responsible_department_id" json:"responsible_department_id"`
}

type Progress struct {
	Progress int `form:"progress" json:"progress"`
}

type ExpectedStartDate struct {
	ExpectedStartDateStart string `form:"expected_start_date_s" json:"expected_start_date_s"`
	ExpectedStartDateEnd   string `form:"expected_start_date_e" json:"expected_start_date_e"`
}

type ExpectedEndDate struct {
	ExpectedEndDateStart string `form:"expected_end_date_s" json:"expected_end_date_s"`
	ExpectedEndDateEnd string `form:"expected_end_date_e" json:"expected_end_date_e"`

}
